package mapper;

import com.tomorrow.javabean.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

@Mapper
public interface PermissionAnnotationMapper {
    @Select("select * from permission p left join role_permission rp on p.pid = rp.pid where rp.rid = #{rid}")
    ArrayList<Permission> selectPermissionByRid(@Param("rid") Integer rid);
}
